package com.prig.base.util;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @Author lww
 * @Description //改变类型
 * @Date 2020/11/19 9:30
 **/
public class ChangeType {
    public static List<Long> String2Long(String ids){
            String[] idsStr = ids.split(",");
            List<Long> idsLong = Arrays.stream(idsStr)
                    .map(str -> Long.parseLong(str))
                    .collect(Collectors.toList());
            return idsLong;
    }
}
